﻿using System.ComponentModel;

namespace Tool.Model
{
    public enum ActionCodes : int
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 1000,

        /// <summary>
        /// 对象不存在
        /// </summary>
        [Description("对象不存在")]
        ObjectNotFound = 1201,

        /// <summary>
        /// 对象已存在
        /// </summary>
        [Description("对象已存在")]
        ObjectExists = 1203,

        /// <summary>
        /// 无效操作
        /// </summary>
        [Description("无效操作")]
        InvalidOperation = 1205,

        /// <summary>
        /// 参数为空
        /// </summary>
        [Description("参数为空")]
        ArgumentNull = 2101,

        /// <summary>
        /// 参数无效
        /// </summary>
        [Description("参数无效")]
        ArgumentInvalid = 2102,

        /// <summary>
        /// token无效
        /// </summary>
        [Description("token无效")]
        TokenInvalid = 1101,
    }
}
